home *** CD-ROM | disk | FTP | other *** search
- //*******************************************************************
- // Frontend.mdl *
- //*******************************************************************
-
- menus on // MENUS ON
-
- playcdtrack "menus"
- clear_flag all
- game_flag hud 0
- gamemode game lock
-
- sfxglobalvolume 1.0
-
- //----------------- HERO
- //create hero "debris1"
- create hero "alien single engined fighter"
- position 10000 above ground 100 7000;100000 5000 7000
- ;task
- ; setfuel off
- ;end
-
- //=============================
- //----------- MAIN ------------
-
- .start_of_frontend
-
- if "s1" not destroyed
- {
- kill "s1"
- }
-
- if "s2" not destroyed
- {
- kill "s2"
- }
-
- if "fortress_corona_1" not destroyed
- {
- kill "fortress_corona_1"
- }
-
- if "core_corona_1" not destroyed
- {
- kill "core_corona_1"
- }
-
- if "fantasy_corona_1" not destroyed
- {
- kill "fantasy_corona_1"
- }
-
- if "life_corona_1" not destroyed
- {
- kill "life_corona_1"
- }
-
- gosub "setup_space"
- gosub "setup_station"
- gosub "setup_planets"
-
- gosub "view_station_closeup"
- gosub "first_ships"
- gosub "view_radar"
- gosub "ships_again"
- gosub "show_patrol_p1"
- gosub "show_patrol_p2"
- gosub "jumpship_from_planet"
- gosub "spin_that_station_1"
- gosub "spin_that_station_2"
- gosub "some_planet_views_1"
- gosub "spin_that_station_3"
- gosub "spin_that_station_4"
- gosub "scene_planet_core"
- gosub "scene_planet_fantasy"
- gosub "scene_planet_fortress"
- gosub "some_planet_views_2"
- gosub "some_planet_views_4"
-
- kill all
-
- jump "start_of_frontend"
-
- wait_until flag 31 set
- wait_until flag 31 clear
-
- menus off
- goto_level 601 // 0
-
- wait_until flag 31 set
- wait_until flag 31 clear
-
- //*************************
- include "asc\misc\skys.mdl"
- //*************************
-
- //-------- END of MAIN --------
- //=============================
-
-
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .setup_space
-
- setland off
- viewdistance 175000 //250000
- ;spacedust 1
-
- gosub "space_lighting2"
-
- createstatic "starsphere"
- label "s1"
- position 0 0 0
- globalise
-
- createstatic "nebulasphere"
- label "s2"
- position 0 0 0
- globalise
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .setup_station
-
- create "SpaceStation"
- position 50000 5000 50000
- label "space_station"
- playanim me 0
- globalise
- task
- .rotate
- ;rotate 0 .01 0 frames 1
- rotate 0 .005 0 frames 1
- jump "rotate"
- end
-
- standingorder "space_station" single minded
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .setup_planets
-
- //------- core
- create "core_planet"
- position 10000 0 10000 relative to "space_station"
- label "planet_core"
- no_collision "planet_core"
- task
- .rotate0
- rotate 0 .01 0 frames 1
- jump "rotate0"
- end
-
- create "planetcloud"
- position 0 0 0 relative to "previous_object"
- task
- .rotatex0
- rotate 0 .0035 0.0001 frames 1
- jump "rotatex0"
- end
-
- createstatic "core_corona"
- position 0 0 0 relative to "previous_object"
- label "core_corona_1"
-
- //------- fantasy---------------------
- create "fantasy_planet"
- position -10000 0 10000 relative to "space_station"
- label "planet_fantasy"
- no_collision "planet_fantasy"
- task
- .rotate1
- rotate 0 .01 0 frames 1
- jump "rotate1"
- end
-
- create "planetcloud"
- position 0 0 0 relative to "previous_object"
- task
- .rotatex1
- rotate 0 .0035 0.0001 frames 1
- jump "rotatex1"
- end
-
- createstatic "fantasy_corona"
- position 0 0 0 relative to "previous_object"
- label "fantasy_corona_1"
-
- //------- fortress------------------------------------------------------
- create "fortress_planet"
- position -10000 0 -10000 relative to "space_station"
- label "planet_fortress"
- no_collision "planet_fortress"
- task
- .rotate2
- rotate 0 .01 0 frames 1
- jump "rotate2"
- end
-
- create "planetcloud"
- position 0 0 0 relative to "previous_object"
- task
- .rotatex2
- rotate 0 .0035 0.0001 frames 1
- jump "rotatex2"
- end
-
- createstatic "fortress_corona"
- position 0 0 0 relative to "previous_object"
- label "fortress_corona_1"
-
- //------- life---------------------------------------------------------
- create "life_planet"
- position 10000 0 -10000 relative to "space_station"
- label "planet_life"
- no_collision "planet_life"
- task
- .rotate3
- rotate 0 .01 0 frames 1
- jump "rotate3"
- end
-
- create "planetcloud"
- position 0 0 0 relative to "previous_object"
- task
- .rotatex3
- rotate 0 .0035 0.0001 frames 1
- jump "rotatex3"
- end
-
- createstatic "life_corona"
- position 0 0 0 relative to "previous_object"
- label "life_corona_1"
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .view_1_space
-
- //ease in n (frames to ease in)
- //ease out at n (1-0 dolly point at which to start decelerating)
-
- ;setcurrentobject "space_station"
- ; position 50000 5000 50000
-
- camera set
- position 53091.2 4620 48760
- pointing_at 54091.2 4620 48760.2
-
- fade up over 0 frames
-
- camera linear
- position 53091.2 4620 48760
- pointing_at 54008.2 4620 49158.8
- dollyspeed 0.002
- panspeed 0.003
- ease in 200
-
- pause 120
-
- pause 120
-
- wait_until pan = 0
-
- camera linear
- position 53091.2 4620 48760
- pointing_at 53612.6 4620 49613.4
- dollyspeed 0
- panspeed 0.004
- ease in 90
-
- wait_until dolly = 0
-
- camera linear
- position 53091.2 4620 48760
- pointing_at 53612.6 4620 49613.4
- dollyspeed 0
- panspeed 0.005
-
- wait_until pan = 0
-
- camera linear
- position 53568.3 4300 48448.6
- pointing_at 52656.1 4270.01 48857
- dollyspeed 0.004
- panspeed 0.004
- ease out at 0.3
-
- wait_until pan = 0
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .view_station_closeup
-
- setcurrentobject "space_station"
- position 50000 5000 50000
-
- camera set
- position 50647.3 4448.58 49712.4
- pointing_at 49734.6 4448.28 50121
-
- fade up over 1 frames
-
- camera linear
- position 51213.3 3648.77 49458.9
- pointing_at 50300.6 3648.47 49867.6
- dollyspeed 0.002
- ; ease in 30
- ease out at 0.2
- panspeed 0.003
- ease in 30
- ease out at 0.2
-
- wait_until pan = 0
- wait_until dolly = 0
-
- camera linear
- position 50669.8 11100 49308
- pointing_at "space_station"
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.0025
- ease in 30
- ease out at 0.2
- ; ease in 120
- ; ease out at 0.3
-
- ;wait_until pan = 0
- ;wait_until dolly = 0
-
- pause 550
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .first_ships
-
- camera set
- position 62806.8 5410.62 57538.8
- pointing_at 61893.7 5300 57943.2 ;5462.57
-
- pause 80
-
- camera
- position 62806.8 5410.62 57538.8
- pointing_at "space_station"
- dollyspeed 0.003
- ease in 30
- ease out at 0.2
- panspeed 0.0001
- ease in 30
- ease out at 0.2
-
- pause 360
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .view_radar
-
- camera set
- position -1800 500 -1300 local to "space_station"."strategic scanner"
- pointing_at "space_station"."strategic scanner"
-
- camera linear
- position 1100 -100 -1100 local to "space_station"."strategic scanner"
- pointing_at "space_station"."strategic scanner"
- dollyspeed 0.002
- ease in 30
- ease out at 0.2
- panspeed 0.005
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
- wait_until pan = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .ships_again
-
- setcurrentobject "space_station"
- position 50000 5000 50000
-
- camera set
- position 50370.8 6394.19 61087.6
- pointing_at 50257.1 5870.54 60243.3
-
- camera linear
- position 50370.8 6394.19 61087.6 pointing_at 50248.4 6382.92 60095.2
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.003
- ease in 30
- ease out at 0.2
-
- pause 390
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .show_patrol_p1
-
- camera set
- position 49264.7 5117.02 47431.2
- pointing_at 50123.4 5049.48 46923.1
-
- pause 60
- camera
- position 49264.7 5617.02 55431.2
- pointing_at "space_station"."strategic scanner"
- dollyspeed 0.00001
- ease in 30
- ease out at 0.2
- panspeed 0.00005
- ease in 30
- ease out at 0.2
-
- pause 400
-
- camera
- position 1000 1000 1000 local to "space_station"."strategic scanner";49279.3 4547.86 49836.9
- pointing_at "space_station"."strategic scanner"
- dollyspeed 0.00001
- ease in 30
- ease out at 0.2
- panspeed 0.00005
- ease in 30
- ease out at 0.2
-
- pause 400
-
- camera
- position 48161.7 4720.4 50035
- pointing_at 49055.8 4764.7 50480.5
-
- pause 100
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .show_patrol_p2
-
- setcurrentobject "space_station"
- position 50000 5000 50000
-
- camera set
- position 50307.8 5077.47 49555.9
- pointing_at 1000 800 1000 relative to "space_station"
-
- pause 400
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .some_planet_views_1
-
- camera set
- position 37292.2 5876.05 35080.5 pointing_at 37807.1 5914.97 35936.9
- fade up over 8 frames
-
- camera linear
- position 36215.8 6164.4 36808
- pointing_at "planet_life"
- dollyspeed 0.002
- ease in 30
- ease out at 0.2
- panspeed 0.004
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- camera linear
- position 36165.9 8027.29 38122.5;36275.9 7392.68 37872.8
- pointing_at "space_station"
- dollyspeed 0.002
- ease in 30
- ease out at 0.2
- panspeed 0.004
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
- wait_until pan = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .some_planet_views_2
-
- camera set
- position 37877.9 4982.3 68267.5
- pointing_at 38320.3 4982.66 67370.7
-
- camera linear
- position 40132.5 5202.78 67942.4
- pointing_at 0 150 -300 local to "planet_fantasy"
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.002
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
- wait_until pan = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .jumpship_from_planet
-
- camera set
- position 34756.9 4186.91 60198.3
- pointing_at 35727.7 4152.07 60435.4
-
- camera linear
- position 35984.7 5840.67 56342.1
- pointing_at 36955.6 5805.83 56579.2
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- ;create "mini_me"
- ; position 38685.4 5191.25 58360.4;38378.9 5587.18 58952.6
- ; pointing_at 36786.2 5898.2 56673.2
- ; label "mini"
- ; no_collision "current_object"
- ; task
- ; goto 36190.4 5803.67 56351.1 at 10% within 100 no_avoidance no_slow
- ; goto 33757.9 5700.35 51474.8 at 10% within 1000 no_avoidance no_slow
- ; set_flag 13
- ; end
- ;
- ;wait_until flag 13 set
-
- pause 200
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .some_planet_views_4
-
- camera
- position 200 700 2300 relative to "space_station"
- pointing_at "planet_life"
- pause 1
-
- camera linear
- position -2800 500 -1800 relative to "planet_life"
- pointing_at "planet_life"
- dollyspeed 0.0005
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
-
- pause 350
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .scene_planet_core
-
- camera set
- position 45963 7422.09 42693.7
- pointing_at 46480.8 7303.84 43541.1
-
- camera linear
- position 8000 500 0 relative to "planet_core"
- pointing_at "planet_core"
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .scene_planet_fantasy
-
- camera set
- position 33388.1 7848.05 46127.5
- pointing_at 33673.6 7729.94 47078.5
-
- pause 1
-
- camera linear
- position -4000 1500 4000 relative to "planet_fantasy"
- pointing_at 0 0 2000 relative to "planet_fantasy"
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .scene_planet_fortress
-
- camera set
- position 30830.1 5900.24 32404.5
- pointing_at 31509.8 5901.55 33138
-
- camera linear
- position 35071 5227.36 35892.3
- pointing_at 35750.7 5228.67 36625.8
- dollyspeed 0.002
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
- ;ease in 120
-
- wait_until dolly = 0
-
- camera linear
- position 32736.3 6048.45 38987.3
- pointing_at 51019.2 6123.7 49244.3
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .spin_that_station_1
-
- camera set
- position 50754 18176.6 59515.6
- pointing_at 50846.9 17395.1 58898.7
-
- camera linear
- position 51257.8 4974.72 51142.3
- pointing_at 51111.2 4753.43 50178.2
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 0.001
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- camera linear
- position 52354 7118.44 43534.5
- pointing_at 42882.8 4880.84 57624.9
- dollyspeed 0.002
- ease in 30
- ease out at 0.2
- panspeed 0.003
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .spin_that_station_2
-
- camera set
- position 57089.7 7028.35 46310.6
- pointing_at 40075.6 6953.53 56689.1
-
- camera linear
- position 51986.5 7005.7 49393.7
- pointing_at 40075.6 6953.53 56689.1
- dollyspeed 0.004
- ease in 30
- ease out at 0.2
- panspeed 1
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- camera linear
- position 50788.9 7064.84 47876
- pointing_at 40075.6 6953.53 56689.1
- dollyspeed 0.005
- ease in 30
- ease out at 0.2
- panspeed 0.01
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- camera linear
- position 49900.4 5741.36 49189.9
- pointing_at 40075.6 6953.53 56689.1
- dollyspeed 0.004
- ease in 30
- ease out at 0.2
- panspeed 0.01
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
- pause 200
-
- camera linear
- position 56783.8 4853.12 42584
- pointing_at 40075.6 6953.53 56689.1
- dollyspeed 0.003
- ease in 30
- ease out at 0.2
- panspeed 0.01
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .spin_that_station_3
-
- camera set
- position 51544.2 7002.69 49790.1
- pointing_at 48200.1 3897.99 47410.4
-
- camera linear
- position 50415.6 6170.17 49477.7
- pointing_at 48200.1 3897.99 47410.4
- dollyspeed 0.0004
- ease in 30
- ease out at 0.2
- panspeed 1
- ease in 30
- ease out at 0.2
-
- pause 400
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- .spin_that_station_4
-
- ;setcurrentobject "space_station"
- ; position 50000 5000 50000
-
- camera set
- position 39658.6 872.477 47786.2
- pointing_at 49557.1 6133.09 50472.9
-
- camera linear
- position 48341.5 5471.5 50070.5
- pointing_at 49557.1 6133.09 50472.9
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 1
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
-
- camera linear
- position 48795.3 3583.72 51964.6
- pointing_at 49557.1 6133.09 50472.9
- dollyspeed 0.001
- ease in 30
- ease out at 0.2
- panspeed 1
- ease in 30
- ease out at 0.2
-
- wait_until dolly = 0
- pause 120
-
- return
-
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
- //***********************************************************************
-
- wait_until flag 31 set
- wait_until flag 31 clear
-
- //********************************************************
- //********************************************************
- //********************************************************
-
- end
-
-